import http from '../assets/js/request'
export default {
  /**
   * 详情页基本信息
   */
  // 烽火台本地
  getBusinessInfobase(params) {
    return http.get('/importEntInfo/getEntBaseInfo', params)
  },
  // 数据源
  getBusinessInfo(params) {
    return http.post('/entList/selectDetail', params, 'source')
  },
  /**
   * 详情页舆情风险-负面舆情
   */
  getSuperviseEnt(params) {
    // return http.post('/opinionWarning/getSuperviseEnt', params)
    return http.post('/riskOpinion/negativeOpinionList', params)
  },
  /**
   * 详情页特征词命中
   */
  getkeywordHitInfo(params) {
    // return http.post('/icpUrlStatistic/keywordHitInfo', params)
    return http.post('/riskOpinion/keywordHitInfo', params)
  },
  /**
   * 详情页特征词命中-关键词
   */
  getAntistopList(params) {
    // return http.post('/urlKeywordsMatch/selectList', params)
    return http.post('/riskOpinion/entIcpKeywordsMatchList', params)
  },
  /**
   * 获取预警类型，预警状态，预警时间，属于详情页基本信息的补充接口
   */
  getRiskBaseinfo(params) {
    // return http.post('/entListAndDetail/getRiskDetail', params)
    return http.get('/importEntInfo/getRiskEntDetail', params)
  },
  /**
   * 设置企业状态
   */
  setCompanyStatus(params) {
    // return http.post('/entListAndDetail/setState', params)
    return http.post('/importEntInfo/setState', params)
  },
  /**
   * 获取详情页头部曲线图数据
   */
  getWarningChart(params) {
    // return http.post('/entListAndDetail/getChart', params)
    return http.post('/importEntInfo/getChart', params)
  },
  /**
   * 详情页股东信息
   */
  getShareholder(params) {
    return http.post(
      '/realTimeData/findCorporateShareholders',
      //  数据源
      // '/entShareholderInvestmentInfo/list',
      params,
      'source'
    )
  },
  getShareholder2(params) {
    return http.post(
      '/entShareholderInvestmentInfo/list',
      params
    )
  },
  /**
   * 详情页主要人员
   */
  getMajorPerson(params) {
    return http.post('/realTimeData/findKeyPersonnel', params, 'source')
  },
  // 新主要人员
  getMajorPerson2(params) {
    return http.post('/entEmployees/selectList', params)
  },
  /**
   * 详情页工商变更
   */
  getEntchange(params) {
    return http.post(
      '/realTimeData/findEnterpriseChangeRecord',
      params,
      'source'
    )
  },
  getEntchange2(params) {
    return http.post(
      '/entChangeRecords/selectList',
      params
    )
  },
  /**
   * 操作记录列表
   */
  getOperationRecord(params) {
    return http.post('/oprateRecord/selectList', params)
  },
  /**
   * 详情页-传播风险-近一月舆情
   */
  getOpinion(params) {
    // return http.post('/riskTransmission/opinionTitle', params)
    return http.post('/riskOpinion/opinionTitle', params)
  },
  /**
   * 详情页-传播风险- 近一年招聘人员数量
   */
  getRecruit(params) {
    // return http.post('/riskTransmission/getRecruitmentCopy', params)
    return http.post('/riskPropagate/getRecruitment', params)
  },
  getRecruitAll(params) {
    return http.post('/riskPropagate/selectList', params)
  },
  /**
   * 详情页-传播风险-近一年开设分公司数量 招聘区域扩张
   */
  getBranceOffice(params) {
    // return http.post('/riskTransmission/getBranchOffices', params)
    return http.post('/riskPropagate/getBranchOffices', params)
  },
  /**
   * 操作记录新增
   */
  getAddOperationRecord(params) {
    return http.post('/oprateRecord/addOprateRecord', params)
  },
  /**
   * 关系图谱数据
   */
  getRelationChart(params) {
    return http.post('/mbdRelationChart/selectList', params)
  },
  /**
   * 新关系图谱数据
   * /mbdRelationChart/selectNewList
   */
  getOutAnalysis(params) {
    // return http.post('/mbdRelationChart/selectNewList', params)
    return http.post('/mbdRelationChart/getDetail', params)
  },
  /**
   * 相似企业关联
    **/
  getSameCompany(params) {
    // return http.post('/mbdRelationChart/selectOtherLikeList', params)
    return http.post('/riskRelation/selectOtherLikeList', params)
  },
  /**
   * 统计企业各个维度数据量接口
   */
  getDataCount(params) {
    return http.post('/entRiskCountStatistic/selectDetail', params)
  },
  /**
   * 经营风险红点
   */
  getcountRiskOperation(params) {
    return http.post('/riskOperation/countRiskOperation', params)
  },
  /**
   * 舆情风险红点
   */
  getriskOpcountRiskOpinion(params) {
    return http.post('/riskOpinion/countRiskOpinion', params)
  },
  /**
   * 关联风险红点
   */
  getriskRelationOperation(params) {
    // return http.post('/riskRelation/countRiskOperation', params)
    return http.post('/riskRelation/countRiskRelation', params)
  },
  /**
   * 传播风险红点
   */
  getriskPropagateRiskOperation(params) {
    return http.post('/riskPropagate/countRiskOperation', params)
  },
  /**
   * 风险企业详情-导出接口
   */
  getExportRiskDetail(params) {
    return http.post('/entListAndDetail/getExportRiskDetail', params)
  },
  /**
   * 风险企业详情-导出接口
   */
  getriskDescribe(params) {
    return http.post('/entListAndDetail/riskDescribe', params)
  },
  /**
   * 经营风险描述
   */
  getriskOperationDescribe(params) {
    return http.post('/riskOperation/riskOperationDescribe', params)
  },
  /**
   * 舆情风险描述
   */
  getriskOpinionDescribe(params) {
    return http.post('/riskOpinion/riskOpinionDescribe', params)
  },
  /**
   * 关联风险描述
   */
  getriskRelationDescribe(params) {
    return http.post('/riskRelation/riskRelationDescribe', params)
  },
  /**
   * 传播风险描述
   */
  getriskPropagateDescribe(params) {
    return http.post('/riskPropagate/riskPropagateDescribe', params)
  },
  /**
   * 企业地址信息详情-历史注册地址接口
   */
  getHistoryAddress(params) {
    return http.post('/entListAndDetail/getHistoryAddress', params)
  },
  /**
   * 企业地址信息详情-真实地址重复企业接口
   */
  getReallyAddress(params) {
    // return http.post('/entListAndDetail/getReallyAddress', params)
    return http.post('/importEntInfo/getReallyAddress', params)
    // /importEntInfo/getReallyAddress
  },
  /**
   * 上传的文件列表
   */
  postUploadList(params) {
    return http.post('/entDataUpload/selectList', params)
  },
  /**
   * 传播风险--分公司扩张数量/子公司扩张数量（接口一样，参数不一样）
   */
  getBranchEntList(params) {
    // return http.post('/branchEntChildEnt/getBranchEnt', params)
    return http.post('/riskPropagate/getBranchEnt', params)
  },
  getBranchEntListCount(params) {
    // return http.post('/branchEntChildEnt/getBranchEnt', params)
    return http.post('/riskPropagate/getBranchEntByEntName', params)
  },
  /**
   * 基本信息 股东信息
   * 参数  entid entname
   * POST /realTimeData/findCorporateShareholdersAll
   */
  getEntShareholderInvestmentInfoList(params) {
    return http.post('/realTimeData/findCorporateShareholdersAll', params, 'source')
  },
  /**
   * 基本信息 主要人员
   * 参数  entid entname
   */
  getEntMajorPersonInfoList(params) {
    return http.post('/entMajorPersonInfo/list', params, 'source')
  },
  getEntMajorPersonInfoListnew(params) {
    return http.post('/entMajorPersonInfo/list', params)
  },
  /**
   * 分支机构 信息
   * 参数  entid entname
   */
  getEntBranchInfoList(params) {
    return http.post('/entBranchInfo/list', params, 'source')
  },
  /**
   * 海关注册 信息
   * 参数  entid entname
   */
  getRealTimeDataEntCustom(params) {
    return http.post('/realTimeData/entCustom', params, 'source')
  },
  /**
   * 企业库下载
   * 参数  entname
   */
  getExportDetail(params) {
    return http.post('/entListAndDetail/getExportDetail', params)
  },
  // 图谱点击企业
  getEntRelationView(params) {
    return http.post('/mbdRelationChart/selectEntRelationView', params)
  },
  // 图谱点击人员
  getPersonRelationView(params) {
    return http.post('/mbdRelationChart/selectPersonRelationView', params)
  },
  // 合集
  getandRelationView(params) {
    return http.post('/mbdRelationChart/selectPersonAndEntRelation', params)
  },
  // 启动流程
  getoprateCaseProcessstart(params) {
    return http.post('/oprateCaseProcess/startProcess', params)
  },
  gettianyan(params) {
    return http.post('/oprateRecordHistory/tianyanEntNew', params)
  },
  gettianyanEntNewLocal(params) {
    // oprateRecordHistory/tianyanEntNewLocal   旧的
    //    新的
    return http.post('mbdRelationChart/tianyanEntNewLocal', params)
  },
  getanjiandownreport(params) {
    return http.get('/entListAndDetail/downloadRiskReport', params)
  },
  // 新关联图谱拓展
  // getkeywordHitOpinionInfo(params) {
  //   return http.post('/riskOpinion/keywordHitOpinionInfo', params)
  // },
  getkeywordHitOpinionInfo(params) {
    return http.post('/riskOpinion/keywordHitOpinionInfo', params)
  }
}



// WEBPACK FOOTER //
// ./src/api/entdetail.js